package com.invernadero.invernaderotesis.Presentacion;

import android.app.ActionBar;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.EditText;
import com.invernadero.invernaderotesis.R;

/**
 * Created by Kleyvert on 19/06/13.
 */
public class Diario extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_diario);

        /*ActionBar actionBar = getActionBar();
        actionBar.hide();*/
        // encontramos las variables
       // respaldoController();

    } // onCreate

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        super.onCreateOptionsMenu(menu);
        //getMenuInflater().inflate(menu);
        CrearMenu(menu);
        return true;
    }

    private void CrearMenu(Menu menu){
        MenuItem item1 = menu.add(0,0,0,"Item 1");
        {
            item1.setIcon(R.drawable.terrae_logo);
            item1.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
        }
    }
}
